package cn.skycity.common.service.impl;

import cn.hutool.core.collection.CollectionUtil;
import cn.skycity.common.service.ISysRoleMenuService;
import cn.skycity.common.mapper.SysRoleMenuMapper;
import com.skycity.framework.uaa.pojo.entity.SysRoleMenu;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {

    @Override
    public List<Long> listMenuIds(Long roleId) {
        return this.baseMapper.listMenuIds(roleId);
    }

    @Override
    public List<String> listBtnPerms(List<Long> roleIds) {
        return baseMapper.listPerms(roleIds);
    }
}
